<?php

$db = mysql_connect( 'sql306.0fees.net', 'fees0_5788147', the123 );
mysql_select_db( 'fees0_5788147_loreswap' ) or die( 'dberror' );
mysql_query("SET NAMES utf8");


 $sSql = "CREATE TABLE `loreswap_main` (
  `lore_id` int(8) unsigned NOT NULL AUTO_INCREMENT,
  `lore_author` varchar(50) NOT NULL DEFAULT '',
  `lore_desc` varchar(200) NOT NULL DEFAULT '',
  `lore_content` text NOT NULL,
  `lore_ctime` int(11) unsigned NOT NULL DEFAULT '0',
  `lore_status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `lore_views` int(8) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
  `lore_push` int(8) unsigned NOT NULL DEFAULT '0' COMMENT '推荐，',
  `lore_pid` INT( 8 ) NOT NULL COMMENT  'pid为0的哪个ID',
  `lore_aid` INT( 8 ) NOT NULL COMMENT  '被回复的Id',
  PRIMARY KEY (`lore_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8";

if (  mysql_query( $sSql ) ) {
	echo 'ok';
}else{
	echo $sSql;
	die( 'dberror'. mysql_error() );
}